#ifndef __userUartRxCtrl__
#define __userUartRxCtrl__

#define BUFFER_MAX  32     //缓冲区大小
typedef struct user_CircleBuffer{
    unsigned char write_pos;             //缓冲区保存的位置
    unsigned char read_pos;             //缓冲区读取的位置   
    unsigned char circle_buffer[BUFFER_MAX];    //缓冲区数组 
}circle_buffer;
    
void userRxBufferPop(unsigned char* user_buf);
void userGetRxBufferLen(unsigned char* user_RxLen);
void userUartRxFinishTick(void);
unsigned char userUartRxIdle(void);
void userUartRxBufferPush(const unsigned char _buf);
void userRxMemcpy(unsigned char* dst_buf, unsigned char len);
void userRxBufferReset(void);

#endif

